
public class Brug_point {

    public static void main(String[] args){
		Point p1 = new Point(5,10);
		Point p2 = new Point(5,10);
		printPoints(p1,p2);
		p1.move(2,2);
		printPoints(p1,p2); 
		p1=p2;
		printPoints(p1,p2);
		p1.move(2,2);
		printPoints(p1,p2);
	    }
    private static void printPoints(Point pt1, Point pt2){
    	System.out.println("Point 1's position is " + pt1);
    	System.out.println("Point 2's position is " + pt2);
    	System.out.println("Point1 == Point2: " + (pt1==pt2));
    	System.out.println("Point1.equals(Point2): " + pt1.equals(pt2) + "\n");
    }
}
